//package org.liuyunfeng.web;
//
//import com.fasterxml.jackson.core.JsonProcessingException;
//import com.fasterxml.jackson.databind.ObjectMapper;
//import lombok.Getter;
//import lombok.Setter;
//import org.springframework.http.HttpStatus;
//import org.springframework.util.StringUtils;
//import org.springframework.web.bind.annotation.*;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
///**
// * @description:
// * @author: TanJingyu
// * @create: 2022-01-07 14:34
// **/
//@RestController
//@RequestMapping("/json")
//public class JsonStrController {
//
//    @PostMapping
//    public Object newData(@RequestBody List<QrCodeNode> qrCodeNodes) {
//        return qrCodeNodes;
//    }
//
//    @GetMapping
//    public Object newData(HttpServletRequest request, HttpServletResponse response) {
//        return "success";
//    }
//
//    @Getter
//    @Setter
//    public static class QrCodeNode {
//        private String userId;
//        private String qrCode;
//    }
//
//
//    public static void main(String[] args) throws JsonProcessingException {
//        QrCodeNode qrCodeNode = new QrCodeNode();
//        qrCodeNode.setUserId("1");
//        qrCodeNode.setQrCode("fff");
//
//        System.out.println(new ObjectMapper().writeValueAsString(qrCodeNode));
//    }
//}
//
//